{config_load file="$language/affiliate.conf" section="affiliate_sales"}
<div class="content-block">
	<div class="gray-title-top">
		<div class="b-left"></div>
			<span class="bold tsb">{#heading_title#}</span>
		<div class="b-right"></div>
	</div>
	<div class="con-cen">
		<div class="content-text">
<div class="page-block">
	<span class="page-block-title">{#text_affiliate_header#} {$affiliate_sales_split_numbers}</span>
	<span class="page-block-text">
		{$FORM_ACTION}
			<table width="100%">
				<tr>
					<td>{#text_affiliate_period#}</td>
					<td>{$period_selector}</td>
					<td>{#text_affiliate_status#}</td>
					<td>{$status_selector}</td>
					<td>{#text_affiliate_level#}</td>
					<td>{$level_selector}</td>
				</tr>
			</table>
		</form>
	</span>
</div>

<table width="100%">
	<tr>
		<td class="aff-stat-td2 aff-stat-td-right"><b>{#table_heading_date#}</b></td>
		<td class="aff-stat-td2 aff-stat-td-right"><b>{#table_heading_value#}</b></td>
		<td class="aff-stat-td2 aff-stat-td-right"><b>{#table_heading_percentage#}</b></td>
		<td class="aff-stat-td2 aff-stat-td-right"><b>{#table_heading_level#}</b></td>
		<td class="aff-stat-td2 aff-stat-td-right"><b>{#table_heading_sales#}</b></td>
		<td class="aff-stat-td2"><b>{#table_heading_status#}</b></td>
	</tr>
	{if $affiliate_sales_table neq ''}
		{$affiliate_sales_table}
	{else}
	<tr><td class="aff-stat-td2" colspan="6">{#text_no_sales#}</td></tr>
	{/if}
	<tr>
		<td colspan="3" class="aff-stat-td2 aff-stat-td-right">{$affiliate_sales_count}</td>
		<td colspan="3" class="aff-stat-td2">{$affiliate_sales_links}</td>
	</tr>
	<tr>
		<td class="aff-stat-td2" colspan="6"><b>{#text_information_sales_total#} {$affiliate_sales_total} {#text_information_sales_total2#}</b></td>
	</tr>
</table>
		</div>
	</div>
	<div class="con-foo"><div class="sb-left"></div><div class="sb-right"></div></div>
</div>